{extend name='common/_container'}
{block name="content"}
<div class="ibox float-e-margins">
	<div class="ibox-content">
		<div class="form-horizontal" id="CodeInfoForm">
			<div class="row">
				<div class="col-sm-12">
				<!-- form start -->
					<div class="form-group">
						<label class="col-sm-2 control-label">类型名称：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="type_name" value="" name="type_name" class="form-control" placeholder="请输入类型名称">
						</div>
					</div>
					<div class="form-group layui-form">
						<label class="col-sm-2 control-label">是否显示：</label>
						<div class="col-sm-9">
							<?php if(!isset($info['state'])){ $info['state'] = 0; }; ?>
							<input name="state" value="1" type="radio" {if condition="$info.state eq '1'"}checked{/if} title="开启">
							<input name="state" value="0" type="radio" {if condition="$info.state eq '0'"}checked{/if} title="关闭">
						</div>
					</div>

					<input type="hidden" id="mbti_id" value="{$Request.get.mbti_id}" name="mbti_id">
				<!-- form end -->
				</div>
			</div>
			<div class="hr-line-dashed"></div>
			<div class="row btn-group-m-t">
				<div class="col-sm-9 col-sm-offset-1">
					<button type="button" class="btn btn-primary" onclick="CodeInfoDlg.add()" id="ensure">
						<i class="fa fa-check"></i>&nbsp;确认提交
					</button>
					<button type="button" class="btn btn-danger" onclick="CodeInfoDlg.close()" id="cancel">
						<i class="fa fa-eraser"></i>&nbsp;取消
					</button>
				</div>
			</div>
		</div>
	</div>
</div>
<script src="__PUBLIC__/static/js/upload.js" charset="utf-8"></script>
<script src="__PUBLIC__/static/js/plugins/layui/layui.js" charset="utf-8"></script>
<script>
	console.log(location.search);
layui.use(['form'],function(){});
laydate.render({elem: '#create_time',type: 'datetime',trigger:'click'});
var CodeInfoDlg = {
	CodeInfoData: {},
	validateFields: {
	 }
}

CodeInfoDlg.collectData = function () {
	this.set('mbti_id').set('type_name').set('create_time');
};

CodeInfoDlg.add = function () {
	 this.clearData();
	 this.collectData();
	 if (!this.validate()) {
	 	return;
	 }
	 var state = $("input[name = 'state']:checked").val();
	 var ajax = new $ax(Feng.ctxPath + "/Mbti.TopicType/add", function (data) {
	 	if ('00' === data.status) {
	 		Feng.success(data.msg,1000);
	 		window.parent.CodeGoods.table.refresh();
	 		CodeInfoDlg.close();
	 	} else {
	 		Feng.error(data.msg + "！",1000);
		 }
	 })
	 ajax.set('state',state);
	 ajax.set(this.CodeInfoData);
	 ajax.start();
};

	<uni-view data-v-1a4147e8="" className="paybox">
		<uni-view data-v-1a4147e8="" className="toxs">临时报告将于
			<uni-text data-v-1a4147e8=""><span>5分钟</span></uni-text>
			后失效
		</uni-view>
		<uni-view data-v-1a4147e8="" className="toxs">解锁完整报告即可
			<uni-text data-v-1a4147e8=""><span>永久保存及转发</span></uni-text>
		</uni-view>
		<uni-view data-v-1a4147e8="" className="tols"><h4 data-v-1a4147e8="">完整报告(10000+字)</h4>
			<uni-text data-v-1a4147e8="">
				<span>含职业参考宝典、最佳恋爱类型推荐、荣格八维解读性格优劣势（等10余项专业模块）更多内容</span></uni-text>
			<uni-view data-v-1a4147e8="" className="money"><h3 data-v-1a4147e8="">¥3.80</h3>
				<uni-text data-v-1a4147e8=""><span>¥69.90</span></uni-text>
			</uni-view>
		</uni-view>
		<uni-view data-v-1a4147e8="" className="paybtn">
			<uni-text data-v-1a4147e8=""><span>支付宝支付</span></uni-text>
			<!----></uni-view>
		<uni-view data-v-1a4147e8="" className="paybtn"><!---->
			<uni-text data-v-1a4147e8=""><span>微信支付</span></uni-text>
		</uni-view>
		<uni-view data-v-1a4147e8="" className="gomils">已有2381027人解锁</uni-view>
		<uni-view data-v-1a4147e8="" className="goqos">付费解锁后，您可以享受以下权利</uni-view>
		<uni-view data-v-1a4147e8="" className="golist">
			<uni-view data-v-1a4147e8="" className="lis">
				<uni-image data-v-1a4147e8="" style="width: 16px;">
					<div style="background-image: url(&quot;&quot;); background-size: 100% 100%; background-repeat: no-repeat;"></div>
					<uni-resize-sensor>
						<div>
							<div></div>
						</div>
						<div>
							<div></div>
						</div>
					</uni-resize-sensor>
					<img src=""
						 draggable="false"></uni-image>
				基础解读
			</uni-view>
			<uni-view data-v-1a4147e8="" className="lis">
				<uni-image data-v-1a4147e8="" style="width: 16px;">
					<div style="background-image: url(&quot;&quot;); background-size: 100% 100%; background-repeat: no-repeat;"></div>
					<uni-resize-sensor>
						<div>
							<div></div>
						</div>
						<div>
							<div></div>
						</div>
					</uni-resize-sensor>
					<img src=""
						 draggable="false"></uni-image>
				MBTI子母详解
			</uni-view>
			<uni-view data-v-1a4147e8="" className="lis">
				<uni-image data-v-1a4147e8="" style="width: 16px;">
					<div style="background-image: url(&quot;&quot;); background-size: 100% 100%; background-repeat: no-repeat;"></div>
					<uni-resize-sensor>
						<div>
							<div></div>
						</div>
						<div>
							<div></div>
						</div>
					</uni-resize-sensor>
					<img src=""
						 draggable="false"></uni-image>
				MBTI大数据统计
			</uni-view>
			<uni-view data-v-1a4147e8="" className="lis">
				<uni-image data-v-1a4147e8="" style="width: 16px;">
					<div style="background-image: url(&quot;&quot;); background-size: 100% 100%; background-repeat: no-repeat;"></div>
					<uni-resize-sensor>
						<div>
							<div></div>
						</div>
						<div>
							<div></div>
						</div>
					</uni-resize-sensor>
					<img src=""
						 draggable="false"></uni-image>
				相同MBTI类型的名人
			</uni-view>
			<uni-view data-v-1a4147e8="" className="lis">
				<uni-image data-v-1a4147e8="" style="width: 16px;">
					<div style="background-image: url(&quot;&quot;); background-size: 100% 100%; background-repeat: no-repeat;"></div>
					<uni-resize-sensor>
						<div>
							<div></div>
						</div>
						<div>
							<div></div>
						</div>
					</uni-resize-sensor>
					<img src=""
						 draggable="false"></uni-image>
				适宜发展路径
			</uni-view>
			<uni-view data-v-1a4147e8="" className="lis">
				<uni-image data-v-1a4147e8="" style="width: 16px;">
					<div style="background-image: url(&quot;&quot;); background-size: 100% 100%; background-repeat: no-repeat;"></div>
					<uni-resize-sensor>
						<div>
							<div></div>
						</div>
						<div>
							<div></div>
						</div>
					</uni-resize-sensor>
					<img src=""
						 draggable="false"></uni-image>
				恋爱性格分析
			</uni-view>
			<uni-view data-v-1a4147e8="" className="lis">
				<uni-image data-v-1a4147e8="" style="width: 16px;">
					<div style="background-image: url(&quot;&quot;); background-size: 100% 100%; background-repeat: no-repeat;"></div>
					<uni-resize-sensor>
						<div>
							<div></div>
						</div>
						<div>
							<div></div>
						</div>
					</uni-resize-sensor>
					<img src=""
						 draggable="false"></uni-image>
				完整解读
			</uni-view>
			<uni-view data-v-1a4147e8="" className="lis">
				<uni-image data-v-1a4147e8="" style="width: 16px;">
					<div style="background-image: url(&quot;&quot;); background-size: 100% 100%; background-repeat: no-repeat;"></div>
					<uni-resize-sensor>
						<div>
							<div></div>
						</div>
						<div>
							<div></div>
						</div>
					</uni-resize-sensor>
					<img src=""
						 draggable="false"></uni-image>
				万字解析报告
			</uni-view>
			<uni-view data-v-1a4147e8="" className="lis">
				<uni-image data-v-1a4147e8="" style="width: 16px;">
					<div style="background-image: url(&quot;&quot;); background-size: 100% 100%; background-repeat: no-repeat;"></div>
					<uni-resize-sensor>
						<div>
							<div></div>
						</div>
						<div>
							<div></div>
						</div>
					</uni-resize-sensor>
					<img src=""
						 draggable="false"></uni-image>
				性格优势/劣势
			</uni-view>
			<uni-view data-v-1a4147e8="" className="lis">
				<uni-image data-v-1a4147e8="" style="width: 16px;">
					<div style="background-image: url(&quot;&quot;); background-size: 100% 100%; background-repeat: no-repeat;"></div>
					<uni-resize-sensor>
						<div>
							<div></div>
						</div>
						<div>
							<div></div>
						</div>
					</uni-resize-sensor>
					<img src=""
						 draggable="false"></uni-image>
				成长/职场/恋爱诊断
			</uni-view>
			<uni-view data-v-1a4147e8="" className="lis">
				<uni-image data-v-1a4147e8="" style="width: 16px;">
					<div style="background-image: url(&quot;&quot;); background-size: 100% 100%; background-repeat: no-repeat;"></div>
					<uni-resize-sensor>
						<div>
							<div></div>
						</div>
						<div>
							<div></div>
						</div>
					</uni-resize-sensor>
					<img src=""
						 draggable="false"></uni-image>
				适宜职业选择
			</uni-view>
			<uni-view data-v-1a4147e8="" className="lis">
				<uni-image data-v-1a4147e8="" style="width: 16px;">
					<div style="background-image: url(&quot;&quot;); background-size: 100% 100%; background-repeat: no-repeat;"></div>
					<uni-resize-sensor>
						<div>
							<div></div>
						</div>
						<div>
							<div></div>
						</div>
					</uni-resize-sensor>
					<img src=""
						 draggable="false"></uni-image>
				无限次重新测试权限
			</uni-view>
			<uni-view data-v-1a4147e8="" className="lis">
				<uni-image data-v-1a4147e8="" style="width: 16px;">
					<div style="background-image: url(&quot;&quot;); background-size: 100% 100%; background-repeat: no-repeat;"></div>
					<uni-resize-sensor>
						<div>
							<div></div>
						</div>
						<div>
							<div></div>
						</div>
					</uni-resize-sensor>
					<img src=""
						 draggable="false"></uni-image>
				MBTI高级会员权益
			</uni-view>
			<uni-view data-v-1a4147e8="" className="lis">
				<uni-image data-v-1a4147e8="" style="width: 16px;">
					<div style="background-image: url(&quot;&quot;); background-size: 100% 100%; background-repeat: no-repeat;"></div>
					<uni-resize-sensor>
						<div>
							<div></div>
						</div>
						<div>
							<div></div>
						</div>
					</uni-resize-sensor>
					<img src=""
						 draggable="false"></uni-image>
				专家详解
			</uni-view>
		</uni-view>
	</uni-view>


</script>
<script src="__PUBLIC__/static/js/base.js" charset="utf-8"></script>
{/block}
